<T:ViewBase x:Class="WPFExcelReport.TKAZU02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KAZUMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKAZU.KAZUMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KAZUDAT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKAZU.KAZUDAT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KAZUVB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKAZU.KAZUVB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KAZUVG:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKAZU.KAZUVG}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KAZUPROGRP:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKAZU.KAZUPROGRP}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KAZUARTGRP:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKAZU.KAZUARTGRP}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KAZUWR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKAZU.KAZUWR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KAZULAND:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKAZU.KAZULAND}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KAZUKOLL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKAZU.KAZUKOLL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KAZUBRANCHE:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKAZU.KAZUBRANCHE}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KAZUKUNDNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKAZU.KAZUKUNDNR}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsKAZU,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwKAZU}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwKAZU, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="KAZUMANDANT"
                                    Binding="{Binding Path=KAZUMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUDAT"
                                    Binding="{Binding Path=KAZUDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUVB"
                                    Binding="{Binding Path=KAZUVB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUVB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUVG"
                                    Binding="{Binding Path=KAZUVG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUVG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUPROGRP"
                                    Binding="{Binding Path=KAZUPROGRP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUPROGRP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUARTGRP"
                                    Binding="{Binding Path=KAZUARTGRP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUARTGRP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUWR"
                                    Binding="{Binding Path=KAZUWR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUWR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZULAND"
                                    Binding="{Binding Path=KAZULAND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZULAND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUKOLL"
                                    Binding="{Binding Path=KAZUKOLL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUKOLL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUBRANCHE"
                                    Binding="{Binding Path=KAZUBRANCHE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUBRANCHE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUKUNDNR"
                                    Binding="{Binding Path=KAZUKUNDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUKUNDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUVERBNR"
                                    Binding="{Binding Path=KAZUVERBNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUVERBNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUAUFKRS"
                                    Binding="{Binding Path=KAZUAUFKRS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUAUFKRS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUAUFLFD"
                                    Binding="{Binding Path=KAZUAUFLFD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUAUFLFD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUAUFPOS"
                                    Binding="{Binding Path=KAZUAUFPOS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUAUFPOS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZULKUNDNR"
                                    Binding="{Binding Path=KAZULKUNDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZULKUNDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUWERK"
                                    Binding="{Binding Path=KAZUWERK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUWERK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUABT"
                                    Binding="{Binding Path=KAZUABT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUABT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUWAKZ"
                                    Binding="{Binding Path=KAZUWAKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUWAKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUART"
                                    Binding="{Binding Path=KAZUART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUVAR"
                                    Binding="{Binding Path=KAZUVAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUVAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUAENZL"
                                    Binding="{Binding Path=KAZUAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUAENB"
                                    Binding="{Binding Path=KAZUAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUAEND"
                                    Binding="{Binding Path=KAZUAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUNEUB"
                                    Binding="{Binding Path=KAZUNEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUNEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUNEUD"
                                    Binding="{Binding Path=KAZUNEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUNEUD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUVVGKZ1"
                                    Binding="{Binding Path=KAZUVVGKZ1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUVVGKZ1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUVVGKZ2"
                                    Binding="{Binding Path=KAZUVVGKZ2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUVVGKZ2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUVVGKZ3"
                                    Binding="{Binding Path=KAZUVVGKZ3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUVVGKZ3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUVVGKZ4"
                                    Binding="{Binding Path=KAZUVVGKZ4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUVVGKZ4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUVVGKZ5"
                                    Binding="{Binding Path=KAZUVVGKZ5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUVVGKZ5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUVVGKZ6"
                                    Binding="{Binding Path=KAZUVVGKZ6, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUVVGKZ6}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUVVGKZ7"
                                    Binding="{Binding Path=KAZUVVGKZ7, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUVVGKZ7}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUVVGKZ8"
                                    Binding="{Binding Path=KAZUVVGKZ8, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUVVGKZ8}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUVVGKZ9"
                                    Binding="{Binding Path=KAZUVVGKZ9, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUVVGKZ9}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUVVGKZ10"
                                    Binding="{Binding Path=KAZUVVGKZ10, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUVVGKZ10}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUVERPZ"
                                    Binding="{Binding Path=KAZUVERPZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUVERPZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUVERSZ"
                                    Binding="{Binding Path=KAZUVERSZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUVERSZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUFRAZ"
                                    Binding="{Binding Path=KAZUFRAZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUFRAZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUZOLLZ"
                                    Binding="{Binding Path=KAZUZOLLZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUZOLLZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUPROVZ"
                                    Binding="{Binding Path=KAZUPROVZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUPROVZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUBONZ"
                                    Binding="{Binding Path=KAZUBONZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUBONZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUSKTZ"
                                    Binding="{Binding Path=KAZUSKTZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUSKTZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUEVZ"
                                    Binding="{Binding Path=KAZUEVZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUEVZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUSEKSZ"
                                    Binding="{Binding Path=KAZUSEKSZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUSEKSZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUSDBZ"
                                    Binding="{Binding Path=KAZUSDBZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUSDBZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUZINSZ"
                                    Binding="{Binding Path=KAZUZINSZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUZINSZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KAZUFILLER"
                                    Binding="{Binding Path=KAZUFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAZUFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
